<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<html>
<head>
<link href="common/common.css" rel="stylesheet" type="text/css">
<script src="common/common.js" type="text/javascript"></script>
<script type="text/javascript" src="common/popcalendar.js"></script>
</head>
<body>
<div style="width:800px" id="centerlayout">
<strong>【订单编辑】</strong>
<html:form action="DeliveryOrderUpdateAction.do">
<div style="text-align: left;color:red"><html:errors /></div>
<html:hidden property="id" />
		<fieldset style="border: none;border-top: 1px solid #C9DCA6;"><legend></legend>
		<table class="input-table" width="100%" align="center">
			<tbody>
				<tr>
				    <td class="column">订单编号</td>
				    		<td class="value">
					<html:text property="orderNumber"	 size="20" 	 styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap" param="ORDERTYPEMAP" return="orderTypedicMap" />
				    <td class="column">订单类型</td>
				    		<td class="value">
					    <html:select property="orderType" >
					  	<html:option value="">请选择</html:option>
					    <html:options collection="orderTypedicMap" property="key"	labelProperty="value" />
					    </html:select>
					</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap" param="trueFalseMap" return="vipCustomFlagdicMap" />
				    <td class="column">VIP订单</td>
				    		<td class="value">
					    <html:select property="vipCustomFlag" >
					  	<html:option value="">请选择</html:option>
					    <html:options collection="vipCustomFlagdicMap" property="key"	labelProperty="value" />
					    </html:select>
					</td>
					    </tr>
					    <tr>
				    <td class="column">始发地</td>
				    		<td class="value">
					<html:text property="originLocation"	 size="20" 	 styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
				    <td class="column">目的地</td>
				    		<td class="value">
					<html:text property="destLocation"	 size="20" 	 styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap" param="deliveryServiceTypeM" return="serviceTypedicMap" />
				    <td class="column">服务类型</td>
				    		<td class="value">
					    <html:select property="serviceType" >
					  	<html:option value="">请选择</html:option>
					    <html:options collection="serviceTypedicMap" property="key"	labelProperty="value" />
					    </html:select>
					</td>
					    </tr>
					    <tr>
				    <td class="column">寄件人</td>
				    		<td class="value">
					<html:text property="sender"	 size="20" 	 styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
				    <td class="column">寄件人电话</td>
				    		<td class="value">
					<html:text property="senderPhone"	 size="20" 	 styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
				    <td class="column">取件地址</td>
				    		<td class="value">
					<html:text property="fetchAddr"	 size="30" 	 styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
					    </tr>
					    <tr>
				    <td class="column">收件人</td>
				    		<td class="value">
					<html:text property="receiver"	 size="20" 	 styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
				    <td class="column">收件人电话</td>
				    		<td class="value">
					<html:text property="receiverPhone"	 size="10" 	 styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
				    <td class="column">收件人地址</td>
				    		<td class="value">
					<html:text property="receiverAddr"	 size="30" 	 styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
					    </tr>
					    <tr>
				    <td class="column">货物品名</td>
				    		<td class="value">
					<html:text property="goodsName"	 size="30" 	 styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
				    <td class="column">计费重量</td>
				    		<td class="value">
					<html:text property="chargeWeight"	 size="10" 	 styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
				    <td class="column">体积</td>
				    		<td class="value">
					<html:text property="dimension"	 size="10" 	 styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
					    </tr>
					    <tr>
				    <td class="column">货品价值</td>
				    		<td class="value">
					<html:text property="goodsPrice"	 size="10" 	 styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap" param="dOrderPayTypeMap" return="payTypedicMap" />
				    <td class="column">付款类型</td>
				    		<td class="value">
					    <html:select property="payType" >
					  	<html:option value="">请选择</html:option>
					    <html:options collection="payTypedicMap" property="key"	labelProperty="value" />
					    </html:select>
					</td>
				    <td class="column">运费</td>
				    		<td class="value">
					<html:text property="deliveryFee"	 size="10" 	 styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
					    </tr>
					    <tr>
				    <td class="column">保险费</td>
				    		<td class="value">
					<html:text property="insuranceFee"	 size="10" 	 styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
				    <td class="column">代收款</td>
				  		<td class="value" colspan="3">
					<html:text property="agencyReceiveFee"	 size="10" 	 styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
					    </tr>
					    <tr>
				    <td class="column">物品描述</td>
				  		<td class="value" colspan="5">
						<html:textarea  rows="4" cols="90" property="contentsDesc"/>
					</td>
					    </tr>
					    <tr>
				    <td class="column">特别操作指示</td>
				  		<td class="value" colspan="5">
						<html:textarea  rows="4" cols="90" property="specialOperateNote"/>
					</td>
					    </tr>
					    <tr>
				    <td class="column">订单日期</td>
				    		<td class="value">
					<html:text property="orderDate"	 size="10" 	 styleClass="textbox" errorStyleClass="textbox_err" />
						<a href onclick="popUpCalendar(this, document.forms[0].orderDate, 'yyyy-mm-dd',-1,-1,false);return false"><img src="images/calendar.gif" border="0"></a>
					</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap" param="substationMap" return="subStationdicMap" />
				    <td class="column">分站点</td>
				    		<td class="value">
					    <html:select property="subStation" >
					  	<html:option value="">请选择</html:option>
					    <html:options collection="subStationdicMap" property="key"	labelProperty="value" />
					    </html:select>
					</td>
				 <html:hidden property="orderStatus" />
				<ct:call object="${springctx.appDicService}" method="getDicMap" param="orderStatusMap" return="orderStatusdicMap" />
				    <td class="column">状态</td>
				    		<td class="value">
					    <html:select property="orderStatus" disabled="true">
					  	<html:option value="">请选择</html:option>
					    <html:options collection="orderStatusdicMap" property="key"	labelProperty="value" />
					    </html:select>
					</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap" param="usersMap" return="createrdicMap" />
					    </tr>
					    <tr>
				    <td class="column">录入</td>
				    		<td class="value">
					    <html:select property="creater" >
					  	<html:option value="">请选择</html:option>
					    <html:options collection="createrdicMap" property="key"	labelProperty="value" />
					    </html:select>
					</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap" param="usersMap" return="fetcherdicMap" />
				    <td class="column">取件</td>
				    		<td class="value">
					    <html:select property="fetcher" >
					  	<html:option value="">请选择</html:option>
					    <html:options collection="fetcherdicMap" property="key"	labelProperty="value" />
					    </html:select>
					</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap" param="usersMap" return="schedulerdicMap" />
				    <td class="column">调度</td>
				    		<td class="value">
					    <html:select property="scheduler" >
					  	<html:option value="">请选择</html:option>
					    <html:options collection="schedulerdicMap" property="key"	labelProperty="value" />
					    </html:select>
					</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap" param="usersMap" return="dispatcherdicMap" />
					    </tr>
					    <tr>
				    <td class="column">派送</td>
				    		<td class="value">
					    <html:select property="dispatcher" >
					  	<html:option value="">请选择</html:option>
					    <html:options collection="dispatcherdicMap" property="key"	labelProperty="value" />
					    </html:select>
					</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap" param="problemOrderCodeMap" return="problemCodedicMap" />
				    <td class="column">问题订单代码</td>
				  		<td class="value" colspan="3">
					    <html:select property="problemCode" >
					  	<html:option value="">请选择</html:option>
					    <html:options collection="problemCodedicMap" property="key"	labelProperty="value" />
					    </html:select>
					</td>
					    </tr>
					    <tr>
				    <td class="column">备注</td>
				  		<td class="value" colspan="5">
						<html:textarea  rows="4" cols="90" property="orderNote"/>
					</td>
				</tr>
			</tbody>
		</table>
		</fieldset>
		选择订单操作流程:<br>
		<button class="button" type="button" name="confirm">安排取货</button>
		<button class="button" type="button" name="confirm">入站记录</button>
		<button class="button" type="button" name="confirm">进行调度</button>
		<button class="button" type="button" name="confirm">安排派送</button>
		<br>
		<button class="button" type="button" name="confirm">行程记录</button>
		<button class="button" type="button" name="confirm">签收存档</button>
		<button class="button" type="button" name="confirm">用户退货</button>
		<button class="button" type="button" name="confirm">问题订单</button>
		<br>
		<button class="button" type="submit" name="confirm">保存修改</button>
		<input class="button" type="button" value="返回" onclick="redirect('<c:url value='DeliveryOrderMainAction.do?method=doQuery'/>')"/>
</html:form>
</div>
</body>
</html>
